package com.bwhx.eruler.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bwhx.eruler.bean.Page;
import com.bwhx.eruler.bean.Project;
import com.bwhx.eruler.dao.ProjectDAO;
import com.bwhx.eruler.service.ProjectService;

@Service
public class ProjectServiceImpl implements ProjectService {
	
	@Autowired
	ProjectDAO projectDAO;

	@Override
	public List<Project> list(Page p) {
		
		return projectDAO.list(p);
	}

	@Override
	public Integer count(Project project) {
		return projectDAO.count(project);
	}

	@Override
	public void save(Project project) {
		projectDAO.save(project);
		
	}

	@Override
	public void update(Project project) {
		projectDAO.update(project);
		
	}

	@Override
	public List<Project> findByPcode(Project project) {
		// TODO Auto-generated method stub
		return projectDAO.findByPcode(project);
	}

	@Override
	public Project findprojectByPcodeadPpwd(Project project) {
		return projectDAO.findprojectByPcodeadPpwd(project);
	}

}
